package com.tansun.easycare.rule.ruleproj.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 规则项目用户权限信息Entity
 *
 * @author lph
 * @version 2017-02-15
 */
public class RuleAuthority extends RuleBaseEntity<RuleAuthority> {

    private static final long serialVersionUID = 1L;
    private String projectcode;        // 规则项目名称
    private String usercode;        // 用户账号
    private String username;        // 用户姓名
    private String authoritycode;        // 规则对应用户权限信息
    //新增rolecode，rolename，isrole，modifycode ，querycode字段  HX 20191128
    private String rolecode;        // 角色账号
    private String rolename;        // 角色姓名
    private String isrole;        // 角色标识
    private String modifycode;        // 修改权限
    private String querycode;        // 查询权限
    
    
    public String getModifycode() {
		return modifycode;
	}

	public void setModifycode(String modifycode) {
		this.modifycode = modifycode;
	}

	public String getQuerycode() {
		return querycode;
	}

	public void setQuerycode(String querycode) {
		this.querycode = querycode;
	}

	public String getIsrole() {
		return isrole;
	}

	public void setIsrole(String isrole) {
		this.isrole = isrole;
	}

	public String getRolecode() {
		return rolecode;
	}

	public void setRolecode(String rolecode) {
		this.rolecode = rolecode;
	}

	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public RuleAuthority() {
        super();
    }

    public RuleAuthority(String id) {
        super(id);
    }

    @Length(min = 0, max = 50, message = "规则项目名称长度必须介于 0 和 50 之间")
    public String getProjectcode() {
        return projectcode;
    }

    public void setProjectcode(String projectcode) {
        this.projectcode = projectcode;
    }

    @Length(min = 0, max = 50, message = "用户账号长度必须介于 0 和 50 之间")
    public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }

    @Length(min = 0, max = 50, message = "用户姓名长度必须介于 0 和 50 之间")
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Length(min = 0, max = 2000, message = "规则对应用户权限信息长度必须介于 0 和 2000 之间")
    public String getAuthoritycode() {
        return authoritycode;
    }

    public void setAuthoritycode(String authoritycode) {
        this.authoritycode = authoritycode;
    }

}